PathLayer

A layer displaying line path between inserted [iface@Location] objects

This layer shows a connection between inserted objects implementing the [iface@Location] interface. This means that both #ShumateMarker objects and [class@Coordinate] objects can be inserted into the layer. Of course, custom objects implementing the #ShumateLocation interface can be used as well.

Constructors

this
this(ShumatePathLayer* shumatePathLayer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Viewport viewport)

Creates a new instance of #ShumatePathLayer.

Members

Functions

addNode
void addNode(LocationIF location)

Adds a #ShumateLocation object to the layer. The node is prepended to the list.

getClosed
bool getClosed()

Gets information whether the path is closed.

getDash
ListG getDash()

Returns the list of dash segment lengths.

getFill
bool getFill()

Checks whether the path is filled.

getFillColor
RGBA getFillColor()

Gets the path's fill color.

getNodes
ListG getNodes()

Gets a copy of the list of all #ShumateLocation objects inserted into the layer. You should free the list but not its contents.

getOutlineColor
RGBA getOutlineColor()

Gets the path's outline color.

getOutlineWidth
double getOutlineWidth()

Gets the width of the outline.

getPathLayerStruct
ShumatePathLayer* getPathLayerStruct(bool transferOwnership)

Get the main Gtk struct

getStroke
bool getStroke()

Checks whether the path is stroked.

getStrokeColor
RGBA getStrokeColor()

Gets the path's stroke color.

getStrokeWidth
double getStrokeWidth()

Gets the width of the stroke.

getStruct
void* getStruct()

the main Gtk struct as a void*

insertNode
void insertNode(LocationIF location, uint position)

Inserts a #ShumateLocation object to the specified position.

removeAll
void removeAll()

Removes all #ShumateLocation objects from the layer.

removeNode
void removeNode(LocationIF location)

Removes the #ShumateLocation object from the layer.

setClosed
void setClosed(bool value)

Makes the path closed.

setDash
void setDash(ListG dashPattern)

Sets dashed line pattern in a way similar to cairo_set_dash() of cairo. This method supports only integer values for segment lengths. The values have to be passed inside the data pointer of the list (using the %GUINT_TO_POINTER conversion)

setFill
void setFill(bool value)

Sets the path to be filled

setFillColor
void setFillColor(RGBA color)

Set the path's fill color.

setOutlineColor
void setOutlineColor(RGBA color)

Set the path's outline color.

setOutlineWidth
void setOutlineWidth(double value)

Sets the width of the outline

setStroke
void setStroke(bool value)

Sets the path to be stroked

setStrokeColor
void setStrokeColor(RGBA color)

Set the path's stroke color.

setStrokeWidth
void setStrokeWidth(double value)

Sets the width of the stroke

Static functions

getType
GType getType()

Variables

shumatePathLayer
ShumatePathLayer* shumatePathLayer;

the main Gtk struct

Inherited Members

From Layer

shumateLayer
ShumateLayer* shumateLayer;

the main Gtk struct

getLayerStruct
ShumateLayer* getLayerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getViewport
Viewport getViewport()

Gets the #ShumateViewport used by this layer.

Meta